package com.aios.model;

import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;

import com.aios.action.GetAmountPowerAction;
import com.aios.util.DoubleUtil;

public class TapData {

	private String date;

	private List<Double> amount_electric_power;

	public TapData(Calendar input) {
		date = GetAmountPowerAction.DateFormat.format(input.getTime());
	}

	public String getDate() {
		
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public List<Double> getAmount_electric_power() {
		amount_electric_power = new ArrayList<>();
		
		for(int i = 0; i < 24; i++) {
			amount_electric_power.add(DoubleUtil.getDoubleStringWithinRange());
		}
		
		return amount_electric_power;
	}

	public void setAmount_electric_power(List<Double> amount_electric_power) {
		this.amount_electric_power = amount_electric_power;
	}

}
